#!/bin/bash

# 设置基础 URL 和认证 token
BASE_URL="http://127.0.0.1:8000/api/v1"
TOKEN="your_token_here"

# 测试获取省份专利分布
echo "测试获取省份专利分布"
curl -X GET "${BASE_URL}/trend/industry/1/province-patents" \
    -H "Authorization: Bearer ${TOKEN}"
echo -e "\n"

# 测试获取特定年份的省份专利分布
echo "测试获取2020年省份专利分布"
curl -X GET "${BASE_URL}/trend/industry/1/province-patents?year=2020" \
    -H "Authorization: Bearer ${TOKEN}"
echo -e "\n" 